﻿using System;
using System.Diagnostics;
using System.Windows.Forms;
using DCS.AdministrationClient.Forms;

namespace DCS.AdministrationClient
{
    internal static class Program
    {
        public static ApplicationContext Context = new ApplicationContext();

        public static GreetingsForm Greetings;

        /// <summary>
        /// Главная точка входа для приложения.
        /// </summary>        
        [STAThread]
        private static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Greetings = new GreetingsForm();
            Application.Run(new ConnectionForm());
        }

        public static void Exit()
        {
            Process.GetCurrentProcess().Kill();
            Application.Exit();
        }
    }
}